home *** CD-ROM | disk | FTP | other *** search
- Path: solon.com!not-for-mail
- From: seebs@solutions.solon.com (Peter Seebach)
- Newsgroups: comp.lang.c
- Subject: Re: reversing a string
- Date: 9 Apr 1996 17:43:26 -0500
- Organization: Usenet Fact Police (Undercover)
- Message-ID: <4kep6e$8hq@solutions.solon.com>
- References: <4k6cjl$j8f@central.server.swt.edu> <4k6jks$fh9@solutions.solon.com> <DpLtt5.Lqu@iquest.net>
- Reply-To: seebs@solon.com
- NNTP-Posting-Host: solutions.solon.com
-
- In article <DpLtt5.Lqu@iquest.net>, Doug Miller <dlmiller@iquest.net> wrote:
- >void swap (char *s) {
- > if (strlen(s) > 1) {
-
- I was avoiding strlen, because I think it counts as either a loop or a
- temporary variable.
-
- -s
- --
- Peter Seebach - seebs@solon.com - Copyright 1996 Peter Seebach.
- C/Unix wizard -- C/Unix questions? Send mail for help. No, really!
- FUCK the communications decency act. Goddamned government. [literally.]
- The *other* C FAQ - http://www.solon.com/~seebs/c/c-iaq.html
-